package mode23.builder;

/**
 * 奔驰车，具体建造者，实现了抽象建造者接口。
 */
public class BenzCarBuilder implements Builder{
    private Car car = new Car();
    @Override
    public void buildWheel() {
        car.setWheel("Benz Wheel");
    }

    @Override
    public void buildFrame() {
        car.setFrame("Beanz frame");
    }

    @Override
    public void buildEngine() {
        car.setEngine("Benz Engine");
    }

    @Override
    public Car createCar() {
        return car;
    }
}
